﻿using Microsoft.EntityFrameworkCore;
using Traceability.Register.Domain;
namespace Traceability.Register.Infrastructrue
{
    /// <summary>
    /// EF上下文
    /// </summary>
    public class MyDBContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options">选项</param>
        public MyDBContext(DbContextOptions<MyDBContext> options) : base(options)
        {
        }
        /// <summary>
        /// 商品表
        /// </summary>
        public DbSet<Goods> Goods { get; set; }
        /// <summary>
        /// 溯源表
        /// </summary>
        public DbSet<Traceabilitys> Traceabilitys { get; set; }
        /// <summary>
        /// 养殖表
        /// </summary>
        public DbSet<Breedings> Breedings { get; set; }
        /// <summary>
        /// （免疫）保健信息表
        /// </summary>
        public DbSet<Imunitys> Imunitys { get; set; }
        /// <summary>
        /// 养殖企业信息表
        /// </summary>
        public DbSet<BreedingEnterprise> BreedingEnterprise { get; set; }
        /// <summary>
        /// 屠宰信息表
        /// </summary>
        public DbSet<Slaughters> Slaughters { get; set; }
        /// <summary>
        /// 屠宰企业公司表
        /// </summary>
        public DbSet<SlaughterEnterprise> SlaughterEnterprise { get; set; }
        /// <summary>
        /// 地址表
        /// </summary>
        public DbSet<Addresses> Addresses { get; set; }
        /// <summary>
        /// 图片表
        /// </summary>
        public DbSet<Pictures> Pictures { get; set; }
        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<UserInfo> UserInfo { get; set; }
        /// <summary>
        /// 深加工信息表
        /// </summary>
        public DbSet<MachiningEnterprise> MachiningEnterprise { get; set; }
    }
}
